home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-12-05 | 1.3 KB | 46 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="1"
- "COUNT"="1"
- "UIPATH"="Internet\Internet Information Server\System"
- "NAME"="Messages"
- "VERSION"="1.17"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Access Denied"
- "DESCRIPTION 1"="The "Access Denied" message is sent to the user if he has tried to get a file and he has no permissions to get it."
- "DESCRIPTION 2"="NOTE: This settings also affect Personal Web Server (PWS)."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- 'Declaration of some constants
- sPC="HKLM\System\CurrentControlSet\Services\W3SVC\Enum\"
- sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
- sP2="HKLM\System\CurrentControlSet\Services\InetInfo\Parameters\"
- vAD="AccessDeniedMessage" 'string
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- if RegPathExists(sPC) then
- s=RegReadValue(sp & vAD)
- SetUIElement 1,s
- else
- Disable
- end if
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- Call RegWriteValue(sp & vad,s,1)
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- End Sub
-